package xyz.lisys.boot.hook;

import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
public class MyCommandLineRunner implements CommandLineRunner {

    @Override
    public void run(String... args) throws Exception {
        System.out.println("SystemPrompt1: 系统初始化完成");

        // 获取参数 方式1
        System.out.println("------- 获取参数 方式1 -------");
        for (String str : args) {
            System.out.println("str: " + str);
        }
    }
}
